import 'package:json_annotation/json_annotation.dart';
import 'type_and_tag_icon.dart';

part 'user_task_order_list.g.dart';

@JsonSerializable()
class UserTaskOrderList {
  final List<TypeAndTagIcon> typeAndTagIcons;
  final String statusIcon;
  final String rewardAmountDisplay;
  final String orderDescriptionInfo;
  final String taskThumb;
  final String taskNo;
  final String orderStatus;
  final String taskTitle;
  final String orderNo;
  final String deadLine;

  UserTaskOrderList({
    required this.typeAndTagIcons,
    required this.statusIcon,
    required this.rewardAmountDisplay,
    required this.orderDescriptionInfo,
    required this.taskThumb,
    required this.taskNo,
    required this.orderStatus,
    required this.taskTitle,
    required this.orderNo,
    required this.deadLine,
  });

  factory UserTaskOrderList.fromJson(Map<String, dynamic> json) =>
      _$UserTaskOrderListFromJson(json);

  Map<String, dynamic> toJson() => _$UserTaskOrderListToJson(this);
}